package com.aurora.spider.houyuantuan;

import com.geccocrawler.gecco.annotation.HtmlField;
import com.geccocrawler.gecco.annotation.Image;
import com.geccocrawler.gecco.annotation.Text;
import com.geccocrawler.gecco.spider.HrefBean;
import com.geccocrawler.gecco.spider.HtmlBean;

import java.util.List;

/**
 * Created by jackie on 18/1/15.
 */
public class HitProject implements HtmlBean {

    //body > div.wrapper > div.container > div > div.mod-map > div.bd > ul > li.item1 > div > p > a
    @Text
    @HtmlField(cssPath="li >div > p > a")
    private String personName;

    @Text
    @HtmlField(cssPath="li >div > p > span:nth-child(1)")
    private String spName;

    @Image()
    @HtmlField(cssPath="li > div > div > img:nth-child(1)")
    private String imgUrl;
    @Image()
    @HtmlField(cssPath="li > div > div > a > img:nth-child(1)")
    private String imgUrl2;

    @Text
    @HtmlField(cssPath="li >div > p > span")
    private  String relation;

    @Text
    @HtmlField(cssPath="li >div > p > span:nth-child(2)")
    private  String relation2;


    @HtmlField(cssPath="li >div > p > a")
    private List<HrefBean> urls;

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getRelation() {
        return relation;
    }

    public void setRelation(String relation) {
        this.relation = relation;
    }

    public List<HrefBean> getUrls() {
        return urls;
    }

    public void setUrls(List<HrefBean> urls) {
        this.urls = urls;
    }

    public String getSpName() {
        return spName;
    }

    public void setSpName(String spName) {
        this.spName = spName;
    }

    public String getRelation2() {
        return relation2;
    }

    public void setRelation2(String relation2) {
        this.relation2 = relation2;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl2() {
        return imgUrl2;
    }

    public void setImgUrl2(String imgUrl2) {
        this.imgUrl2 = imgUrl2;
    }
}
